package com.yjkf.zh.admin.JunitTest;

import com.yjkf.zh.admin.ZhAdminApplication;
import com.yjkf.zh.admin.dao.SysUserDeviceMapper;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

@RunWith(SpringRunner.class)
@SpringBootTest(classes={ZhAdminApplication.class})
public class JunitTest {

    @Autowired
    private SysUserDeviceMapper sysUserDeviceMapper;

    @Before
    public void befo(){
        System.out.println("befo");
    }

    @Test
    public void deft(){
        System.out.println(sysUserDeviceMapper.findPointNum(97L));

    }

    @After
    public void after(){
        System.out.println("after");
    }
}
